package ro.upt.ac.cstaicu.instrumentation.classadapters;

import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.MethodVisitor;

import ro.upt.ac.cstaicu.instrumentation.methodadapters.IMMethodAdapter;

public class IMAllMethodsCA extends IMClassAdapter {
	private IMMethodAdapter adapter;
	//TODO remove this
	private static int counter = 0;

	public IMAllMethodsCA(ClassWriter cv) {
		super(cv);
	}

	@Override
	protected MethodVisitor getMethodAdapter(MethodVisitor visitor,
			String className, String methodName) {
		adapter = new IMMethodAdapter(visitor, className, methodName);
		adapters.put(methodName + counter++, adapter);
		return adapter;
	}

}
